package com.topvision.myviewtest.behavor;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.topvision.myviewtest.R;

import java.util.List;

public class BehaviorAdapter extends BaseQuickAdapter<ItemBean,BaseViewHolder> {

    public BehaviorAdapter(int layoutResId, @Nullable List<ItemBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ItemBean item) {
        helper.setImageResource(R.id.iv_behavior_picture, item.imageRes);
        helper.setText(R.id.tv_behavior_desc, item.desc);
    }
}
